<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tetris Game: /home/hokan/NetBeansProjects/TetrisGame/headers/CGameFieldManager.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tetris Game
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Test game project created via Irrlicht and Qt</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_game_field_manager_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/home/hokan/NetBeansProjects/TetrisGame/headers/CGameFieldManager.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span>
<a name="l00002"></a>00002 <span class="comment"> * File:   CGameFieldManager.h</span>
<a name="l00003"></a>00003 <span class="comment"> * Author: hokan</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Created on 29 Июнь 2014 г., 19:22</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CGAMEFIELDMANAGER_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CGAMEFIELDMANAGER_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wunused-parameter&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wunused-variable&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include &lt;irrArray.h&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;ISceneNode.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;ISceneManager.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#pragma GCC diagnostic warning &quot;-Wunused-parameter&quot;</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#pragma GCC diagnostic warning &quot;-Wunused-variable&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="keyword">enum</span> EGF_FIGURE_TYPE {
<a name="l00023"></a>00023     EGF_EMPTY = 0,
<a name="l00024"></a>00024     EGF_CUBE,
<a name="l00025"></a>00025     EGF_SPHERE,
<a name="l00026"></a>00026     EGF_NOT_EMPTY
<a name="l00027"></a>00027 };
<a name="l00028"></a>00028 
<a name="l00032"></a><a class="code" href="class_c_game_field_manager.html">00032</a> <span class="keyword">class </span><a class="code" href="class_c_game_field_manager.html">CGameFieldManager</a> {
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00034"></a>00034     <span class="comment">/*</span>
<a name="l00035"></a>00035 <span class="comment">     10 |</span>
<a name="l00036"></a>00036 <span class="comment">        |    / 10</span>
<a name="l00037"></a>00037 <span class="comment">        |   /</span>
<a name="l00038"></a>00038 <span class="comment">        |  /</span>
<a name="l00039"></a>00039 <span class="comment">        | /</span>
<a name="l00040"></a>00040 <span class="comment">     0  |/_ _ _ _ _ _ 10</span>
<a name="l00041"></a>00041 <span class="comment">          </span>
<a name="l00042"></a>00042 <span class="comment">     */</span>
<a name="l00043"></a>00043     
<a name="l00051"></a>00051     <a class="code" href="class_c_game_field_manager.html#a8b9a632360cda622852183051f1a94ae">CGameFieldManager</a>(irr::s32 x, irr::s32 y, irr::s32 z);
<a name="l00052"></a>00052     
<a name="l00058"></a>00058     <a class="code" href="class_c_game_field_manager.html#a8b9a632360cda622852183051f1a94ae">CGameFieldManager</a>(irr::core::vector3di fieldSize);
<a name="l00059"></a>00059     
<a name="l00063"></a>00063     <span class="keyword">virtual</span> <a class="code" href="class_c_game_field_manager.html#ac822a9949b68b621d1470c3e66eb34f7">~CGameFieldManager</a>();
<a name="l00064"></a>00064 
<a name="l00065"></a>00065     <span class="comment">// TODO round field size, so it can be divided by 2</span>
<a name="l00073"></a>00073 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="class_c_game_field_manager.html#af1a6a17d595f92b82108adb6439d18c2">setFieldSize</a>(irr::s32 x, irr::s32 y, irr::s32 z);
<a name="l00074"></a>00074      
<a name="l00083"></a>00083     <span class="keywordtype">void</span> <a class="code" href="class_c_game_field_manager.html#aaf245b288d90c2369c6a9480fab6688e">getLinesToDelete</a>(<span class="keywordtype">bool</span> twoDimensionalMode, EGF_FIGURE_TYPE figureType, irr::core::array&lt;irr::s32&gt;&amp; linesToDelete);
<a name="l00084"></a>00084 
<a name="l00093"></a>00093     irr::u8 <a class="code" href="class_c_game_field_manager.html#a872772ee3f6f1e178ed19fd345a2691f">getFieldValue</a>(irr::s32 x, irr::s32 y, irr::s32 z) <span class="keyword">const</span>;
<a name="l00094"></a>00094 
<a name="l00103"></a>00103     <span class="keywordtype">void</span> <a class="code" href="class_c_game_field_manager.html#a95498382e678754cfade232555dcbc8e">setFieldValue</a>(irr::u8 newValue, irr::s32 x, irr::s32 y, irr::s32 z);
<a name="l00104"></a>00104 
<a name="l00111"></a>00111     irr::u8 <a class="code" href="class_c_game_field_manager.html#a872772ee3f6f1e178ed19fd345a2691f">getFieldValue</a>(irr::core::vector3di position) <span class="keyword">const</span>;
<a name="l00112"></a>00112 
<a name="l00119"></a>00119     <span class="keywordtype">void</span> <a class="code" href="class_c_game_field_manager.html#a95498382e678754cfade232555dcbc8e">setFieldValue</a>(irr::u8 newValue, irr::core::vector3di position);
<a name="l00120"></a>00120 
<a name="l00126"></a>00126     <span class="keywordtype">void</span> <a class="code" href="class_c_game_field_manager.html#a93f0f5daaa72e59b6c9184325e460782">clearField</a>(irr::u8 value = EGF_EMPTY);
<a name="l00127"></a>00127 
<a name="l00133"></a>00133     irr::core::vector3di <a class="code" href="class_c_game_field_manager.html#a43a1299373d9c84ce49ea436fed0932b">getFieldSize</a>() <span class="keyword">const</span>;
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 <span class="keyword">private</span>:
<a name="l00136"></a>00136 
<a name="l00137"></a>00137     <span class="comment">//  |y</span>
<a name="l00138"></a>00138     <span class="comment">//  |    /z</span>
<a name="l00139"></a>00139     <span class="comment">//  |   /</span>
<a name="l00140"></a>00140     <span class="comment">//  |  /</span>
<a name="l00141"></a>00141     <span class="comment">//  | /</span>
<a name="l00142"></a>00142     <span class="comment">//  |/_ _ _ _ _ x     </span>
<a name="l00143"></a>00143 
<a name="l00153"></a>00153     <span class="keywordtype">bool</span> hasLineSameValues(irr::s32 lineNumber, EGF_FIGURE_TYPE value);
<a name="l00154"></a>00154 
<a name="l00164"></a>00164     <span class="keywordtype">bool</span> hasPlaneSameValues(irr::s32 planeNumber, EGF_FIGURE_TYPE value);
<a name="l00165"></a>00165 
<a name="l00174"></a>00174     <span class="keywordtype">bool</span> hasLineNonEmptyValues(irr::s32 lineNumber);
<a name="l00175"></a>00175     
<a name="l00184"></a>00184     <span class="keywordtype">bool</span> hasPlaneNonEmptyValues(irr::s32 planeNumber);
<a name="l00185"></a>00185 <span class="keyword">private</span>:
<a name="l00189"></a>00189     irr::core::array&lt;irr::u32&gt; field;
<a name="l00190"></a>00190 
<a name="l00194"></a>00194     irr::s32 currentSizeX;
<a name="l00195"></a>00195     
<a name="l00199"></a>00199     irr::s32 currentSizeY;
<a name="l00200"></a>00200     
<a name="l00204"></a>00204     irr::s32 currentSizeZ;
<a name="l00205"></a>00205 };
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 <span class="preprocessor">#endif  </span><span class="comment">/* CGAMEFIELDMANAGER_H */</span>
<a name="l00208"></a>00208 
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>CGameFieldManager.h</b>      </li>

    <li class="footer">Generated on Sun Jul 6 2014 19:35:11 for Tetris Game by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
